const framework = require('../../framework')
const userPlugin = require('./plugins/userPlugin')

// 读取服务配置
const appConfig = framework.common.assertAndGetAppConfig('application.json')

// 初始化Seneca
framework.generator.createMicroservice(
  appConfig.pin,
  userPlugin,
  appConfig.redis,
  function (seneca, remoteConfig) {
    console.info(`${remoteConfig.alias}(微服务) is running`)
  }
)
